<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>XYChart.addBarLayer3</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="XYChart.htm">XYChart</a>.<wbr>addBarLayer3</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public BarLayer addBarLayer3(double[] data [, int[] colors [, String[] names [, int depth ]]])
</div>
<p class="heading2">Description</p>
<div class="content">
Adds a multi-color bar layer to the XYChart, and specify the data set to use for drawing the bars.<br><br>
A multi-color bar layer is a bar layer in which each bar has a different color. In a normal bar layer, each data set has a different color, but the bars in the same data set have the same color.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>data</td><td>(Mandatory)</td><td>An array of numbers representing the data set.</td></tr><tr><td>colors</td><td>[Empty_Array]</td><td>An array of colors to draw the bars. An empty array means the colors are automatically selected from the palette.</td></tr><tr><td>names</td><td>[Empty_Array]</td><td>An array of text strings as the names of the bars. The names will be used in the legend box, if one is available. An empty array means that bars have no name.</td></tr><tr><td>depth</td><td>0</td><td>The 3D depth of the bar layer.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
A <a href="BarLayer.htm">BarLayer</a> object representing the bar layer created.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
